﻿using System;
using System.Windows;
using System.Windows.Controls;
using GSSoftSL.ViewModel;
using GSSoftSL.Web.Models;

namespace GSSoftSL.Views
{
    /// <summary>
    /// Description for TruongView.
    /// </summary>
    public partial class TruongView : UserControl
    {
        //private TruongEditView child = new TruongEditView();

        /// <summary>
        /// Initializes a new instance of the TruongView class.
        /// </summary>
        public TruongView()
        {
            InitializeComponent();
        }

        private void dataForm_AutoGeneratingField(object sender, DataFormAutoGeneratingFieldEventArgs e)
        {
            if (e.PropertyName == "MaTruong")
                e.Field.IsEnabled = false;
        }

    }
}